package com.example.blue;

import org.example.result.FeaResult;
import org.example.result.ZhenChanResult;

public class ProcessedData {
    private String value;
    private String angle = "";
    private String acccle = "";
    private FeaResult feaResult = null;
    private ZhenChanResult zhenchanResult = null;
    private String flag = "Blank"; // "allout"  "magbias"  "accgyrobias" "duizhiout" "duizhiResult" "rawout"
    public ProcessedData(String value) {
        this.value = value;
    }
    public ProcessedData(String value, String angle, String flag) {
        this.value = value;
        this.angle = angle;
        this.flag = flag;
    }

    public ProcessedData(String value, FeaResult feaResult, String flag) {
        this.value = value;
        this.feaResult = feaResult;
        this.flag = flag;
    }

    public ProcessedData(String value, ZhenChanResult zhenchanResult, String flag) {
        this.value = value;
        this.zhenchanResult = zhenchanResult;
        this.flag = flag;
    }
    public ProcessedData(String value, String flag) {
        this.value = value;
        this.flag = flag;
    }

    public ProcessedData(String value, String angle,String acccle, String flag) {
        this.value = value;
        this.angle = angle;
        this.acccle = acccle;
        this.flag = flag;
    }
    public String getValue() {
        return value;
    }

    public String getAngle() {
        return angle;
    }

    public void setFlag(String flag){ flag = flag; }

    public String getFlag(){ return flag; }
    public FeaResult getFeaResult(){return feaResult; }
    public ZhenChanResult getZhenChanResult(){return zhenchanResult; }
    public String getAcccle(){ return acccle; }
}
